package cn.itcast.anli.service.impl;

import cn.itcast.anli.dao.AccountDAO;
import cn.itcast.anli.dao.impl.AccountDAOIpml;
import cn.itcast.anli.domain.Account;
import cn.itcast.anli.service.AccountService;

public class AccountServiceImpl implements AccountService {
    AccountDAO dao = new AccountDAOIpml();
    @Override
    public Boolean login(Account account) {
        //调用dao的login方法，完成与数据库的交互
        Boolean login = dao.Login(account.getUsername(), account.getPassword());
        return login;
    }
}
